<template>
  <div class="right-panel">
    <div class="panel-section">
      <div class="panel-title">构件质量动态</div>
      <ul>
        <li v-for="item in 5" :key="item">
          <span>2024-12-22 14:21:21 交通项目</span>
          <span class="status error">异常</span>
          <a href="#">详情</a>
        </li>
      </ul>
    </div>
    <div class="panel-section">
      <div class="panel-title">作业质量动态</div>
      <div class="timeline">
        <div class="timeline-bar"></div>
      </div>
    </div>
    <div class="panel-section">
      <div class="panel-title">田块填埋</div>
      <div class="info">
        <div>基本信息：交通项目/五公司</div>
        <div>质量坐标：119.23,23.69检测到田块填埋</div>
        <img src="https://img1.baidu.com/it/u=1234567890,1234567890&fm=253&fmt=auto&app=138&f=JPEG?w=400&h=200" />
      </div>
    </div>
    <div class="panel-section">
      <div class="panel-title">基坑位移</div>
      <div class="info">
        <div>2025-05-07 18:21:43</div>
        <div>质量坐标：最大累计位移为0.6mm，超标...</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RightPanel'
}
</script>

<style scoped>
.right-panel {
  width: 400px;
  background: rgba(10, 26, 42, 0.95);
  color: #fff;
  padding: 10px;
  overflow-y: auto;
}
.panel-section {
  margin-bottom: 20px;
  background: rgba(20, 40, 60, 0.8);
  border-radius: 8px;
  padding: 10px;
}
.panel-title {
  font-weight: bold;
  margin-bottom: 8px;
}
ul {
  padding-left: 0;
  margin: 0;
}
li {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.status.error {
  color: #f00;
  margin-left: 10px;
}
.timeline {
  height: 40px;
  background: #183a5a;
  border-radius: 6px;
  margin-bottom: 8px;
  position: relative;
}
.timeline-bar {
  position: absolute;
  left: 10px;
  top: 18px;
  width: 90%;
  height: 4px;
  background: #1e90ff;
  border-radius: 2px;
}
.info {
  font-size: 0.98rem;
}
.info img {
  width: 100%;
  margin-top: 8px;
  border-radius: 6px;
}
</style>
